<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2017/10/12
 * Time: 9:40
 */

namespace Admin\Model;

use Think\Model;

class ResearchModel extends RelationModel {

    protected $_link = array(
        'Demotype' => array(
            'mapping_type'  => self::BELONGS_TO,
            'class_name'    => 'demotype',
            'foreign_key'   => 'pid',
            'mapping_name'  => 'classify',
        ),

    );	

}